package org.vic.strategy.demo02;

/**
 * 策略实现总类
 * Created by VIC.Huang on 2016/8/24.
 */
public class ConcreteStrategies {
    class ConcreteStrategyA implements Strategy {
        @Override
        public void algorithm() {
            System.out.println("采用策略A计算！");
        }
    }

    class ConcreteStrategyB implements Strategy {
        @Override
        public void algorithm() {
            System.out.println("采用策略B计算！");
        }
    }

    class ConcreteStrategyC implements Strategy {
        @Override
        public void algorithm() {
            System.out.println("采用策略C计算！");
        }
    }
}
